<form action="" method="post" id="frm-change-password">
<div>
    <ul class="cls-form-change-password">
        <li>
            <div class="text"><label for="txt-email-account">Email:</label></div>
            <div><input readonly id="txt-email-account" name="txt-email-account" type="text" value="<?php echo $account ?>" /></div>
        </li>
        <li>
            <div class="text"><label for="txt-password">Constraseña Actual:</label></div>
            <div><input id="txt-password" name="txt-password" type="password" /></div>
        </li>
        <li>            
            
             <div class="text"><label for="new-password">Constraseña Nueva</label></div>
             <div>
                 <input  type="password" name="new-password" id="new-password" />
                 <div style="width: 150px;display: inline;">
                     <ul class="cls-plugnin">
                         <li>
                             <div style="display: inline;"><span>seguridad </span></div>
                             <div style="display: inline-block;margin-top:5px;margin-bottom: 4px; " id="passwordStrengthDiv" class="is0"></div>
                         </li>
                     </ul>                      
                 </div>
             </div>
            
        </li>
        <li>
            <div class="text"><label for="new-password-repeat">Repetir Constraña nueva:</label></div>
            <div><input name="new-password-repeat" type="password" id="new-password-repeat" /></div>
        </li>
        <li class="cls-botencar-li">
            <div>
                <a class="cls-btn-a cls-btn-a cls-font-btn-a" href="javascript:void(0);" id="btn-change-password"> Cambiar</a>
            </div>
        </li>
    </ul>
</div>
    <input type="hidden" value="<?php echo $destination ?>" name="hd-destination" />
</form>

<script type="text/javascript">
$(document).ready(function(){
	$('input[name="new-password"]').passwordStrength();

        $("#btn-change-password").click(function(){
               if(validate({password:'new-password',repeatPassword:'new-password-repeat'}).success){
                    $('#frm-change-password').attr('action','<?php echo url_for('pages/executeChangePassword') ?>');
                    $('#frm-change-password').submit();
               }else{
                   //efecto
               }
        });
});
</script>


